From: Paul Eggert Date: Sun, 19 Jun 2011 18:27:58 +0000 (-0700) Subject: * buffer.c (init_buffer): Don't assume string length fits in 'int'. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~3371^2~35 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=82763af84d60e7665db4f6d9a43813ac305e41f6;p=emacs.git * buffer.c (init_buffer): Don't assume string length fits in 'int'. --- diff --git a/src/ChangeLog b/src/ChangeLog index 798bf6b2f16..55691ba21eb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-06-19 Paul Eggert + * buffer.c (init_buffer): Don't assume string length fits in 'int'. + * lread.c (invalid_syntax): Omit length argument. All uses changed. This doesn't fix a bug, but it simplifies the code away from its former Hollerith-constant appearance, and it's diff --git a/src/buffer.c b/src/buffer.c index fd51f50dcac..fb9b15e4c70 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5083,7 +5083,7 @@ init_buffer (void) { char *pwd; Lisp_Object temp; - int len; + ptrdiff_t len; #ifdef USE_MMAP_FOR_BUFFERS {